package com.ljkj.cordial.lengthtcpheartbeat;

import com.lanjiu.pro.business.BusinessProtocolMessageStandard;

import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandlerContext;

public interface OnConnectStateCallback {
    void onConnected(ChannelFuture ctx);

    void onDoConnect(ChannelHandlerContext ctx);

    void close(ChannelHandlerContext ctx);

    void onRead(BusinessProtocolMessageStandard.CheckUnifiedEntranceMessage msg);

    void onFailed(String msgType);

    void receiveHeartbeat(String fromId);
}
